package com.kehongborui.station.entity;

import java.sql.Date;

/**
 * @Description: 实体类，对应Station数据库中的ticket表
 * @Author: XCQ
 * @email: mr_xcq@163.com
 * @CreateDate: 2018-11-19 20:27
 * @UpdateUser: username
 * @UpdateDate: xxxx-xx-xx
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
public class Ticket {
    /**
     *  行唯一标示
     */
    private int id;
    /**
     *  发车时间
     */
    private Date startTime;
    /**
     *  到站时间
     */
    private Date stopTime;
    /**
     *  始发站
     */
    private String startStation;
    /**
     *  终点站
     */
    private String stopStation;
    /**
     *  票价
     */
    private int price;
    /**
     *  余票
     */
    private int stock;
    /**
     *  车次类型
     */
    private String type;
    /**
     *  数据创建时间
     */
    private Date createTime;
    /**
     *  数据更新时间
     */
    private Date updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getStopStation() {
        return stopStation;
    }

    public void setStopStation(String stopStation) {
        this.stopStation = stopStation;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "id=" + id +
                ", startTime=" + startTime +
                ", stopTime=" + stopTime +
                ", startStation='" + startStation + '\'' +
                ", stopStation='" + stopStation + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", type='" + type + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
